#ifndef MBLOG_DETAIL_WIDGET_H
#define MBLOG_DETAIL_WIDGET_H

#include <QtGui/QWidget>
#include "ui_mblog_detail_widget.h"
#include "dt.h"

class mblog_detail_widget : public QWidget
{
    Q_OBJECT
public:
    QWidget *my_parent;

public:
    mblog_detail_widget(QWidget *parent = 0);
    ~mblog_detail_widget();
    void Init(const int g,bool has_reply=true);
    void GetReplies();

private:
    Ui::mblog_detail_widgetClass ui;
    void ReadMblogXml(const QString& xml);
    void ReadReplyXml(const QString& xml);
    void ReadFowardXml(const QString& xml);
    void SetSoftKeys();
    DtHttp* dh;
    int Guid;
    
private slots:
    void OnSkBack();
    void mblogfinished(QNetworkReply *reply);
    void replyfinished(QNetworkReply *reply);
    void fowardfinished(QNetworkReply *reply);
    void on_btnFoward_clicked();
    void on_btnReply_clicked();
};

#endif // MBLOG_DETAIL_WIDGET_H
